package com.fan.commons.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author fan
 * @date 2021/1/29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Teacher implements Serializable {

	private static final long serialVersionUID = -3640283847919587875L;

	/**
	 * 自然主键
	 */
	private Integer id;

	/**
	 * 教师编号
	 */
	private String teacherId;

	/**
	 * 用户名
	 */
	private String name;
	/**
	 * 密码
	 */
	private String password;

	/**
	 * 性别 0 男，1 女
	 */
	private Integer gender;
	/**
	 * 邮箱
	 */
	private String email;

	/**
	 * 电话
	 */
	private String phone;

	/**
	 * 学院编号
	 */
	private String collegeId;

	/**
	 * 系编号
	 */
	private String systemId;
	/**
	 * 权限标识
	 */
	private Integer role;

	@Override
	public String toString() {
		return "Teacher{" +
				"id=" + id +
				", teacherId='" + teacherId + '\'' +
				", name='" + name + '\'' +
				", password='" + password + '\'' +
				", gender=" + gender +
				", email='" + email + '\'' +
				", phone='" + phone + '\'' +
				", collegeId='" + collegeId + '\'' +
				", systemId='" + systemId + '\'' +
				", role=" + role +
				'}';
	}
}
